﻿#region Using directives

using System;
using System.Data;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;

using NetROS.Tiers.Entities;
using NetROS.Tiers.Data;

#endregion

namespace NetROS.Tiers.Data.Bases
{	
	///<summary>
	/// This class is the base class for any <see cref="MjestoProviderBase"/> implementation.
	/// It exposes CRUD methods as well as selecting on index, foreign keys and custom stored procedures.
	///</summary>
	public abstract partial class MjestoProviderBaseCore : EntityProviderBase<NetROS.Tiers.Entities.Mjesto, NetROS.Tiers.Entities.MjestoKey>
	{		
		#region Get from Many To Many Relationship Functions
		#endregion	
		
		#region Delete Methods

		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to delete.</param>
		/// <returns>Returns true if operation suceeded.</returns>
		public override bool Delete(TransactionManager transactionManager, NetROS.Tiers.Entities.MjestoKey key)
		{
			return Delete(transactionManager, key.ID);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="iD">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public bool Delete(System.Int32 iD)
		{
			return Delete(null, iD);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public abstract bool Delete(TransactionManager transactionManager, System.Int32 iD);		
		
		#endregion Delete Methods
		
		#region Get By Foreign Key Functions
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblMjesto_tblMjesto key.
		///		FK_tblMjesto_tblMjesto Description: 
		/// </summary>
		/// <param name="iDNadMjesto"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Mjesto objects.</returns>
		public NetROS.Tiers.Entities.TList<Mjesto> GetByIDNadMjesto(System.Int32? iDNadMjesto)
		{
			int count = -1;
			return GetByIDNadMjesto(iDNadMjesto, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblMjesto_tblMjesto key.
		///		FK_tblMjesto_tblMjesto Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDNadMjesto"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Mjesto objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Mjesto> GetByIDNadMjesto(TransactionManager transactionManager, System.Int32? iDNadMjesto)
		{
			int count = -1;
			return GetByIDNadMjesto(transactionManager, iDNadMjesto, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblMjesto_tblMjesto key.
		///		FK_tblMjesto_tblMjesto Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDNadMjesto"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Mjesto objects.</returns>
		public NetROS.Tiers.Entities.TList<Mjesto> GetByIDNadMjesto(TransactionManager transactionManager, System.Int32? iDNadMjesto, int start, int pageLength)
		{
			int count = -1;
			return GetByIDNadMjesto(transactionManager, iDNadMjesto, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblMjesto_tblMjesto key.
		///		fK_tblMjesto_tblMjesto Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDNadMjesto"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Mjesto objects.</returns>
		public NetROS.Tiers.Entities.TList<Mjesto> GetByIDNadMjesto(System.Int32? iDNadMjesto, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDNadMjesto(null, iDNadMjesto, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblMjesto_tblMjesto key.
		///		fK_tblMjesto_tblMjesto Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDNadMjesto"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Mjesto objects.</returns>
		public NetROS.Tiers.Entities.TList<Mjesto> GetByIDNadMjesto(System.Int32? iDNadMjesto, int start, int pageLength,out int count)
		{
			return GetByIDNadMjesto(null, iDNadMjesto, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblMjesto_tblMjesto key.
		///		FK_tblMjesto_tblMjesto Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDNadMjesto"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Mjesto objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Mjesto> GetByIDNadMjesto(TransactionManager transactionManager, System.Int32? iDNadMjesto, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblMjesto_tblMjestoTip key.
		///		FK_tblMjesto_tblMjestoTip Description: 
		/// </summary>
		/// <param name="tipMjesta"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Mjesto objects.</returns>
		public NetROS.Tiers.Entities.TList<Mjesto> GetByTipMjesta(System.Int32? tipMjesta)
		{
			int count = -1;
			return GetByTipMjesta(tipMjesta, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblMjesto_tblMjestoTip key.
		///		FK_tblMjesto_tblMjestoTip Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="tipMjesta"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Mjesto objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Mjesto> GetByTipMjesta(TransactionManager transactionManager, System.Int32? tipMjesta)
		{
			int count = -1;
			return GetByTipMjesta(transactionManager, tipMjesta, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblMjesto_tblMjestoTip key.
		///		FK_tblMjesto_tblMjestoTip Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="tipMjesta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Mjesto objects.</returns>
		public NetROS.Tiers.Entities.TList<Mjesto> GetByTipMjesta(TransactionManager transactionManager, System.Int32? tipMjesta, int start, int pageLength)
		{
			int count = -1;
			return GetByTipMjesta(transactionManager, tipMjesta, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblMjesto_tblMjestoTip key.
		///		fK_tblMjesto_tblMjestoTip Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="tipMjesta"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Mjesto objects.</returns>
		public NetROS.Tiers.Entities.TList<Mjesto> GetByTipMjesta(System.Int32? tipMjesta, int start, int pageLength)
		{
			int count =  -1;
			return GetByTipMjesta(null, tipMjesta, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblMjesto_tblMjestoTip key.
		///		fK_tblMjesto_tblMjestoTip Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="tipMjesta"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Mjesto objects.</returns>
		public NetROS.Tiers.Entities.TList<Mjesto> GetByTipMjesta(System.Int32? tipMjesta, int start, int pageLength,out int count)
		{
			return GetByTipMjesta(null, tipMjesta, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblMjesto_tblMjestoTip key.
		///		FK_tblMjesto_tblMjestoTip Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="tipMjesta"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Mjesto objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Mjesto> GetByTipMjesta(TransactionManager transactionManager, System.Int32? tipMjesta, int start, int pageLength, out int count);
		
		#endregion

		#region Get By Index Functions
		
		/// <summary>
		/// 	Gets a row from the DataSource based on its primary key.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to retrieve.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <returns>Returns an instance of the Entity class.</returns>
		public override NetROS.Tiers.Entities.Mjesto Get(TransactionManager transactionManager, NetROS.Tiers.Entities.MjestoKey key, int start, int pageLength)
		{
			return GetByID(transactionManager, key.ID, start, pageLength);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key PK_tblMjesto index.
		/// </summary>
		/// <param name="iD"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Mjesto"/> class.</returns>
		public NetROS.Tiers.Entities.Mjesto GetByID(System.Int32 iD)
		{
			int count = -1;
			return GetByID(null,iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblMjesto index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Mjesto"/> class.</returns>
		public NetROS.Tiers.Entities.Mjesto GetByID(System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByID(null, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblMjesto index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Mjesto"/> class.</returns>
		public NetROS.Tiers.Entities.Mjesto GetByID(TransactionManager transactionManager, System.Int32 iD)
		{
			int count = -1;
			return GetByID(transactionManager, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblMjesto index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Mjesto"/> class.</returns>
		public NetROS.Tiers.Entities.Mjesto GetByID(TransactionManager transactionManager, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByID(transactionManager, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblMjesto index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Mjesto"/> class.</returns>
		public NetROS.Tiers.Entities.Mjesto GetByID(System.Int32 iD, int start, int pageLength, out int count)
		{
			return GetByID(null, iD, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblMjesto index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Mjesto"/> class.</returns>
		public abstract NetROS.Tiers.Entities.Mjesto GetByID(TransactionManager transactionManager, System.Int32 iD, int start, int pageLength, out int count);
						
		#endregion "Get By Index Functions"
	
		#region Custom Methods
		
		
		#endregion

		#region Helper Functions	
		
		/// <summary>
		/// Fill a NetROS.Tiers.Entities.TList&lt;Mjesto&gt; From a DataReader.
		/// </summary>
		/// <param name="reader">Datareader</param>
		/// <param name="rows">The collection to fill</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">number of rows.</param>
		/// <returns>a <see cref="NetROS.Tiers.Entities.TList&lt;Mjesto&gt;"/></returns>
		public static NetROS.Tiers.Entities.TList<Mjesto> Fill(IDataReader reader, NetROS.Tiers.Entities.TList<Mjesto> rows, int start, int pageLength)
		{
		// advance to the starting row
		for (int i = 0; i < start; i++)
		{
			if (!reader.Read())
			return rows; // not enough rows, just return
		}
		for (int i = 0; i < pageLength; i++)
		{
			if (!reader.Read())
			break; // we are done
			string key = null;
			
			NetROS.Tiers.Entities.Mjesto c = null;
			if (DataRepository.Provider.UseEntityFactory)
			{
			key = new System.Text.StringBuilder("Mjesto")
			.Append("|").Append((reader.IsDBNull(((int)NetROS.Tiers.Entities.MjestoColumn.ID - 1))?(int)0:(System.Int32)reader[((int)NetROS.Tiers.Entities.MjestoColumn.ID - 1)]).ToString()).ToString();
			c = EntityManager.LocateOrCreate<Mjesto>(
			key.ToString(), // EntityTrackingKey
			"Mjesto",  //Creational Type
			DataRepository.Provider.EntityCreationalFactoryType,  //Factory used to create entity
			DataRepository.Provider.EnableEntityTracking); // Track this entity?
			}
			else
			{
			c = new NetROS.Tiers.Entities.Mjesto();
			}
			
			if (!DataRepository.Provider.EnableEntityTracking ||
			c.EntityState == EntityState.Added ||
			(DataRepository.Provider.EnableEntityTracking &&
			((DataRepository.Provider.CurrentLoadPolicy == LoadPolicy.PreserveChanges && c.EntityState == EntityState.Unchanged) ||
			(DataRepository.Provider.CurrentLoadPolicy == LoadPolicy.DiscardChanges && (c.EntityState == EntityState.Unchanged ||
								c.EntityState == EntityState.Changed)))))
						{
			c.SuppressEntityEvents = true;
			c.ID = (System.Int32)reader["ID"];
			c.Naziv = (System.String)reader["Naziv"];
			c.PostanskiBroj = reader.IsDBNull(reader.GetOrdinal("PostanskiBroj")) ? null : (System.Int32?)reader["PostanskiBroj"];
			c.SifraOpcine = reader.IsDBNull(reader.GetOrdinal("SifraOpcine")) ? null : (System.Int32?)reader["SifraOpcine"];
			c.Prirez = reader.IsDBNull(reader.GetOrdinal("Prirez")) ? null : (System.Single?)reader["Prirez"];
			c.ZiroRacunZaPorezPrirez = reader.IsDBNull(reader.GetOrdinal("ZiroRacunZaPorezPrirez")) ? null : (System.String)reader["ZiroRacunZaPorezPrirez"];
			c.TipMjesta = reader.IsDBNull(reader.GetOrdinal("TipMjesta")) ? null : (System.Int32?)reader["TipMjesta"];
			c.IDNadMjesto = reader.IsDBNull(reader.GetOrdinal("IDNadMjesto")) ? null : (System.Int32?)reader["IDNadMjesto"];
			c.Hierarchy = reader.IsDBNull(reader.GetOrdinal("Hierarchy")) ? null : (System.String)reader["Hierarchy"];
			c.Lvl = reader.IsDBNull(reader.GetOrdinal("Lvl")) ? null : (System.Int32?)reader["Lvl"];
			c.SifraOpcineRegos = reader.IsDBNull(reader.GetOrdinal("SifraOpcineRegos")) ? null : (System.String)reader["SifraOpcineRegos"];
			c.EntityTrackingKey = key;
			c.AcceptChanges();
			c.SuppressEntityEvents = false;
			}
			rows.Add(c);
		}
		return rows;
		}		
		/// <summary>
		/// Refreshes the <see cref="NetROS.Tiers.Entities.Mjesto"/> object from the <see cref="IDataReader"/>.
		/// </summary>
		/// <param name="reader">The <see cref="IDataReader"/> to read from.</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Mjesto"/> object to refresh.</param>
		public static void RefreshEntity(IDataReader reader, NetROS.Tiers.Entities.Mjesto entity)
		{
			if (!reader.Read()) return;
			
			entity.ID = (System.Int32)reader["ID"];
			entity.Naziv = (System.String)reader["Naziv"];
			entity.PostanskiBroj = reader.IsDBNull(reader.GetOrdinal("PostanskiBroj")) ? null : (System.Int32?)reader["PostanskiBroj"];
			entity.SifraOpcine = reader.IsDBNull(reader.GetOrdinal("SifraOpcine")) ? null : (System.Int32?)reader["SifraOpcine"];
			entity.Prirez = reader.IsDBNull(reader.GetOrdinal("Prirez")) ? null : (System.Single?)reader["Prirez"];
			entity.ZiroRacunZaPorezPrirez = reader.IsDBNull(reader.GetOrdinal("ZiroRacunZaPorezPrirez")) ? null : (System.String)reader["ZiroRacunZaPorezPrirez"];
			entity.TipMjesta = reader.IsDBNull(reader.GetOrdinal("TipMjesta")) ? null : (System.Int32?)reader["TipMjesta"];
			entity.IDNadMjesto = reader.IsDBNull(reader.GetOrdinal("IDNadMjesto")) ? null : (System.Int32?)reader["IDNadMjesto"];
			entity.Hierarchy = reader.IsDBNull(reader.GetOrdinal("Hierarchy")) ? null : (System.String)reader["Hierarchy"];
			entity.Lvl = reader.IsDBNull(reader.GetOrdinal("Lvl")) ? null : (System.Int32?)reader["Lvl"];
			entity.SifraOpcineRegos = reader.IsDBNull(reader.GetOrdinal("SifraOpcineRegos")) ? null : (System.String)reader["SifraOpcineRegos"];
			entity.AcceptChanges();
		}
		
		/// <summary>
		/// Refreshes the <see cref="NetROS.Tiers.Entities.Mjesto"/> object from the <see cref="DataSet"/>.
		/// </summary>
		/// <param name="dataSet">The <see cref="DataSet"/> to read from.</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Mjesto"/> object.</param>
		public static void RefreshEntity(DataSet dataSet, NetROS.Tiers.Entities.Mjesto entity)
		{
			DataRow dataRow = dataSet.Tables[0].Rows[0];
			
			entity.ID = (System.Int32)dataRow["ID"];
			entity.Naziv = (System.String)dataRow["Naziv"];
			entity.PostanskiBroj = Convert.IsDBNull(dataRow["PostanskiBroj"]) ? null : (System.Int32?)dataRow["PostanskiBroj"];
			entity.SifraOpcine = Convert.IsDBNull(dataRow["SifraOpcine"]) ? null : (System.Int32?)dataRow["SifraOpcine"];
			entity.Prirez = Convert.IsDBNull(dataRow["Prirez"]) ? null : (System.Single?)dataRow["Prirez"];
			entity.ZiroRacunZaPorezPrirez = Convert.IsDBNull(dataRow["ZiroRacunZaPorezPrirez"]) ? null : (System.String)dataRow["ZiroRacunZaPorezPrirez"];
			entity.TipMjesta = Convert.IsDBNull(dataRow["TipMjesta"]) ? null : (System.Int32?)dataRow["TipMjesta"];
			entity.IDNadMjesto = Convert.IsDBNull(dataRow["IDNadMjesto"]) ? null : (System.Int32?)dataRow["IDNadMjesto"];
			entity.Hierarchy = Convert.IsDBNull(dataRow["Hierarchy"]) ? null : (System.String)dataRow["Hierarchy"];
			entity.Lvl = Convert.IsDBNull(dataRow["Lvl"]) ? null : (System.Int32?)dataRow["Lvl"];
			entity.SifraOpcineRegos = Convert.IsDBNull(dataRow["SifraOpcineRegos"]) ? null : (System.String)dataRow["SifraOpcineRegos"];
			entity.AcceptChanges();
		}
		#endregion 
		
		#region DeepLoad Methods
		/// <summary>
		/// Deep Loads the <see cref="IEntity"/> object with criteria based of the child 
		/// property collections only N Levels Deep based on the <see cref="DeepLoadType"/>.
		/// </summary>
		/// <remarks>
		/// Use this method with caution as it is possible to DeepLoad with Recursion and traverse an entire object graph.
		/// </remarks>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Mjesto"/> object to load.</param>
		/// <param name="deep">Boolean. A flag that indicates whether to recursively save all Property Collection that are descendants of this instance. If True, saves the complete object graph below this object. If False, saves this object only. </param>
		/// <param name="deepLoadType">DeepLoadType Enumeration to Include/Exclude object property collections from Load.</param>
		/// <param name="childTypes">NetROS.Tiers.Entities.Mjesto Property Collection Type Array To Include or Exclude from Load</param>
		/// <param name="innerList">A collection of child types for easy access.</param>
	    /// <exception cref="ArgumentNullException">entity or childTypes is null.</exception>
	    /// <exception cref="ArgumentException">deepLoadType has invalid value.</exception>
		internal override void DeepLoad(TransactionManager transactionManager, NetROS.Tiers.Entities.Mjesto entity, bool deep, DeepLoadType deepLoadType, System.Type[] childTypes, DeepSession innerList)
		{
			if(entity == null)
				return;

			#region IDNadMjestoSource	
			if (CanDeepLoad(entity, "Mjesto|IDNadMjestoSource", deepLoadType, innerList) 
				&& entity.IDNadMjestoSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.IDNadMjesto ?? (int)0);
				Mjesto tmpEntity = EntityManager.LocateEntity<Mjesto>(EntityLocator.ConstructKeyFromPkItems(typeof(Mjesto), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDNadMjestoSource = tmpEntity;
				else
					entity.IDNadMjestoSource = DataRepository.MjestoProvider.GetByID(transactionManager, (entity.IDNadMjesto ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDNadMjestoSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDNadMjestoSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.MjestoProvider.DeepLoad(transactionManager, entity.IDNadMjestoSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDNadMjestoSource

			#region TipMjestaSource	
			if (CanDeepLoad(entity, "MjestoTip|TipMjestaSource", deepLoadType, innerList) 
				&& entity.TipMjestaSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = (entity.TipMjesta ?? (int)0);
				MjestoTip tmpEntity = EntityManager.LocateEntity<MjestoTip>(EntityLocator.ConstructKeyFromPkItems(typeof(MjestoTip), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.TipMjestaSource = tmpEntity;
				else
					entity.TipMjestaSource = DataRepository.MjestoTipProvider.GetByID(transactionManager, (entity.TipMjesta ?? (int)0));		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'TipMjestaSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.TipMjestaSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.MjestoTipProvider.DeepLoad(transactionManager, entity.TipMjestaSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion TipMjestaSource
			
			//used to hold DeepLoad method delegates and fire after all the local children have been loaded.
			Dictionary<string, KeyValuePair<Delegate, object>> deepHandles = new Dictionary<string, KeyValuePair<Delegate, object>>();
			// Deep load child collections  - Call GetByID methods when available
			
			#region OrganizacijskaJedinicaCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<OrganizacijskaJedinica>|OrganizacijskaJedinicaCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'OrganizacijskaJedinicaCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.OrganizacijskaJedinicaCollection = DataRepository.OrganizacijskaJedinicaProvider.GetByIDMjesto(transactionManager, entity.ID);

				if (deep && entity.OrganizacijskaJedinicaCollection.Count > 0)
				{
					deepHandles.Add("OrganizacijskaJedinicaCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<OrganizacijskaJedinica>) DataRepository.OrganizacijskaJedinicaProvider.DeepLoad,
						new object[] { transactionManager, entity.OrganizacijskaJedinicaCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region OsobaAdreseCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<OsobaAdrese>|OsobaAdreseCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'OsobaAdreseCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.OsobaAdreseCollection = DataRepository.OsobaAdreseProvider.GetByIDMjesto(transactionManager, entity.ID);

				if (deep && entity.OsobaAdreseCollection.Count > 0)
				{
					deepHandles.Add("OsobaAdreseCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<OsobaAdrese>) DataRepository.OsobaAdreseProvider.DeepLoad,
						new object[] { transactionManager, entity.OsobaAdreseCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region BankaCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<Banka>|BankaCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'BankaCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.BankaCollection = DataRepository.BankaProvider.GetByIDMjesto(transactionManager, entity.ID);

				if (deep && entity.BankaCollection.Count > 0)
				{
					deepHandles.Add("BankaCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<Banka>) DataRepository.BankaProvider.DeepLoad,
						new object[] { transactionManager, entity.BankaCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region OsobaCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<Osoba>|OsobaCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'OsobaCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.OsobaCollection = DataRepository.OsobaProvider.GetByIDMjestoRodenja(transactionManager, entity.ID);

				if (deep && entity.OsobaCollection.Count > 0)
				{
					deepHandles.Add("OsobaCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<Osoba>) DataRepository.OsobaProvider.DeepLoad,
						new object[] { transactionManager, entity.OsobaCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region OrganizacijaCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<Organizacija>|OrganizacijaCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'OrganizacijaCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.OrganizacijaCollection = DataRepository.OrganizacijaProvider.GetByIDMjesto(transactionManager, entity.ID);

				if (deep && entity.OrganizacijaCollection.Count > 0)
				{
					deepHandles.Add("OrganizacijaCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<Organizacija>) DataRepository.OrganizacijaProvider.DeepLoad,
						new object[] { transactionManager, entity.OrganizacijaCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region KlijentOsobaCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<KlijentOsoba>|KlijentOsobaCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'KlijentOsobaCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.KlijentOsobaCollection = DataRepository.KlijentOsobaProvider.GetByIDMjesto(transactionManager, entity.ID);

				if (deep && entity.KlijentOsobaCollection.Count > 0)
				{
					deepHandles.Add("KlijentOsobaCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<KlijentOsoba>) DataRepository.KlijentOsobaProvider.DeepLoad,
						new object[] { transactionManager, entity.KlijentOsobaCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region KlijentCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<Klijent>|KlijentCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'KlijentCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.KlijentCollection = DataRepository.KlijentProvider.GetByIDMjesto(transactionManager, entity.ID);

				if (deep && entity.KlijentCollection.Count > 0)
				{
					deepHandles.Add("KlijentCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<Klijent>) DataRepository.KlijentProvider.DeepLoad,
						new object[] { transactionManager, entity.KlijentCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region MjestoCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<Mjesto>|MjestoCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'MjestoCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.MjestoCollection = DataRepository.MjestoProvider.GetByIDNadMjesto(transactionManager, entity.ID);

				if (deep && entity.MjestoCollection.Count > 0)
				{
					deepHandles.Add("MjestoCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<Mjesto>) DataRepository.MjestoProvider.DeepLoad,
						new object[] { transactionManager, entity.MjestoCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			//Fire all DeepLoad Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles.Values)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			deepHandles = null;
		}
		
		#endregion 
		
		#region DeepSave Methods

		/// <summary>
		/// Deep Save the entire object graph of the NetROS.Tiers.Entities.Mjesto object with criteria based of the child 
		/// Type property array and DeepSaveType.
		/// </summary>
		/// <param name="transactionManager">The transaction manager.</param>
		/// <param name="entity">NetROS.Tiers.Entities.Mjesto instance</param>
		/// <param name="deepSaveType">DeepSaveType Enumeration to Include/Exclude object property collections from Save.</param>
		/// <param name="childTypes">NetROS.Tiers.Entities.Mjesto Property Collection Type Array To Include or Exclude from Save</param>
		/// <param name="innerList">A Hashtable of child types for easy access.</param>
		internal override bool DeepSave(TransactionManager transactionManager, NetROS.Tiers.Entities.Mjesto entity, DeepSaveType deepSaveType, System.Type[] childTypes, DeepSession innerList)
		{	
			if (entity == null)
				return false;
							
			#region Composite Parent Properties
			//Save Source Composite Properties, however, don't call deep save on them.  
			//So they only get saved a single level deep.
			
			#region IDNadMjestoSource
			if (CanDeepSave(entity, "Mjesto|IDNadMjestoSource", deepSaveType, innerList) 
				&& entity.IDNadMjestoSource != null)
			{
				DataRepository.MjestoProvider.Save(transactionManager, entity.IDNadMjestoSource);
				entity.IDNadMjesto = entity.IDNadMjestoSource.ID;
			}
			#endregion 
			
			#region TipMjestaSource
			if (CanDeepSave(entity, "MjestoTip|TipMjestaSource", deepSaveType, innerList) 
				&& entity.TipMjestaSource != null)
			{
				DataRepository.MjestoTipProvider.Save(transactionManager, entity.TipMjestaSource);
				entity.TipMjesta = entity.TipMjestaSource.ID;
			}
			#endregion 
			#endregion Composite Parent Properties

			// Save Root Entity through Provider
			if (!entity.IsDeleted)
				this.Save(transactionManager, entity);
			
			//used to hold DeepSave method delegates and fire after all the local children have been saved.
			Dictionary<Delegate, object> deepHandles = new Dictionary<Delegate, object>();
	
			#region List<OrganizacijskaJedinica>
				if (CanDeepSave(entity.OrganizacijskaJedinicaCollection, "List<OrganizacijskaJedinica>|OrganizacijskaJedinicaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(OrganizacijskaJedinica child in entity.OrganizacijskaJedinicaCollection)
					{
						if(child.IDMjestoSource != null)
							child.IDMjesto = child.IDMjestoSource.ID;
						else
							child.IDMjesto = entity.ID;

					}

					if (entity.OrganizacijskaJedinicaCollection.Count > 0 || entity.OrganizacijskaJedinicaCollection.DeletedItems.Count > 0)
					{
						DataRepository.OrganizacijskaJedinicaProvider.Save(transactionManager, entity.OrganizacijskaJedinicaCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< OrganizacijskaJedinica >) DataRepository.OrganizacijskaJedinicaProvider.DeepSave,
							new object[] { transactionManager, entity.OrganizacijskaJedinicaCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<OsobaAdrese>
				if (CanDeepSave(entity.OsobaAdreseCollection, "List<OsobaAdrese>|OsobaAdreseCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(OsobaAdrese child in entity.OsobaAdreseCollection)
					{
						if(child.IDMjestoSource != null)
							child.IDMjesto = child.IDMjestoSource.ID;
						else
							child.IDMjesto = entity.ID;

					}

					if (entity.OsobaAdreseCollection.Count > 0 || entity.OsobaAdreseCollection.DeletedItems.Count > 0)
					{
						DataRepository.OsobaAdreseProvider.Save(transactionManager, entity.OsobaAdreseCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< OsobaAdrese >) DataRepository.OsobaAdreseProvider.DeepSave,
							new object[] { transactionManager, entity.OsobaAdreseCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<Banka>
				if (CanDeepSave(entity.BankaCollection, "List<Banka>|BankaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(Banka child in entity.BankaCollection)
					{
						if(child.IDMjestoSource != null)
							child.IDMjesto = child.IDMjestoSource.ID;
						else
							child.IDMjesto = entity.ID;

					}

					if (entity.BankaCollection.Count > 0 || entity.BankaCollection.DeletedItems.Count > 0)
					{
						DataRepository.BankaProvider.Save(transactionManager, entity.BankaCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< Banka >) DataRepository.BankaProvider.DeepSave,
							new object[] { transactionManager, entity.BankaCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<Osoba>
				if (CanDeepSave(entity.OsobaCollection, "List<Osoba>|OsobaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(Osoba child in entity.OsobaCollection)
					{
						if(child.IDMjestoRodenjaSource != null)
							child.IDMjestoRodenja = child.IDMjestoRodenjaSource.ID;
						else
							child.IDMjestoRodenja = entity.ID;

					}

					if (entity.OsobaCollection.Count > 0 || entity.OsobaCollection.DeletedItems.Count > 0)
					{
						DataRepository.OsobaProvider.Save(transactionManager, entity.OsobaCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< Osoba >) DataRepository.OsobaProvider.DeepSave,
							new object[] { transactionManager, entity.OsobaCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<Organizacija>
				if (CanDeepSave(entity.OrganizacijaCollection, "List<Organizacija>|OrganizacijaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(Organizacija child in entity.OrganizacijaCollection)
					{
						if(child.IDMjestoSource != null)
							child.IDMjesto = child.IDMjestoSource.ID;
						else
							child.IDMjesto = entity.ID;

					}

					if (entity.OrganizacijaCollection.Count > 0 || entity.OrganizacijaCollection.DeletedItems.Count > 0)
					{
						DataRepository.OrganizacijaProvider.Save(transactionManager, entity.OrganizacijaCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< Organizacija >) DataRepository.OrganizacijaProvider.DeepSave,
							new object[] { transactionManager, entity.OrganizacijaCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<KlijentOsoba>
				if (CanDeepSave(entity.KlijentOsobaCollection, "List<KlijentOsoba>|KlijentOsobaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(KlijentOsoba child in entity.KlijentOsobaCollection)
					{
						if(child.IDMjestoSource != null)
							child.IDMjesto = child.IDMjestoSource.ID;
						else
							child.IDMjesto = entity.ID;

					}

					if (entity.KlijentOsobaCollection.Count > 0 || entity.KlijentOsobaCollection.DeletedItems.Count > 0)
					{
						DataRepository.KlijentOsobaProvider.Save(transactionManager, entity.KlijentOsobaCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< KlijentOsoba >) DataRepository.KlijentOsobaProvider.DeepSave,
							new object[] { transactionManager, entity.KlijentOsobaCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<Klijent>
				if (CanDeepSave(entity.KlijentCollection, "List<Klijent>|KlijentCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(Klijent child in entity.KlijentCollection)
					{
						if(child.IDMjestoSource != null)
							child.IDMjesto = child.IDMjestoSource.ID;
						else
							child.IDMjesto = entity.ID;

					}

					if (entity.KlijentCollection.Count > 0 || entity.KlijentCollection.DeletedItems.Count > 0)
					{
						DataRepository.KlijentProvider.Save(transactionManager, entity.KlijentCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< Klijent >) DataRepository.KlijentProvider.DeepSave,
							new object[] { transactionManager, entity.KlijentCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<Mjesto>
				if (CanDeepSave(entity.MjestoCollection, "List<Mjesto>|MjestoCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(Mjesto child in entity.MjestoCollection)
					{
						if(child.IDNadMjestoSource != null)
							child.IDNadMjesto = child.IDNadMjestoSource.ID;
						else
							child.IDNadMjesto = entity.ID;

					}

					if (entity.MjestoCollection.Count > 0 || entity.MjestoCollection.DeletedItems.Count > 0)
					{
						DataRepository.MjestoProvider.Save(transactionManager, entity.MjestoCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< Mjesto >) DataRepository.MjestoProvider.DeepSave,
							new object[] { transactionManager, entity.MjestoCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
			//Fire all DeepSave Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			
			// Save Root Entity through Provider, if not already saved in delete mode
			if (entity.IsDeleted)
				this.Save(transactionManager, entity);
				

			deepHandles = null;
						
			return true;
		}
		#endregion
	} // end class
	
	#region MjestoChildEntityTypes
	
	///<summary>
	/// Enumeration used to expose the different child entity types 
	/// for child properties in <c>NetROS.Tiers.Entities.Mjesto</c>
	///</summary>
	public enum MjestoChildEntityTypes
	{
		
		///<summary>
		/// Composite Property for <c>Mjesto</c> at IDNadMjestoSource
		///</summary>
		[ChildEntityType(typeof(Mjesto))]
		Mjesto,
			
		///<summary>
		/// Composite Property for <c>MjestoTip</c> at TipMjestaSource
		///</summary>
		[ChildEntityType(typeof(MjestoTip))]
		MjestoTip,
	
		///<summary>
		/// Collection of <c>Mjesto</c> as OneToMany for OrganizacijskaJedinicaCollection
		///</summary>
		[ChildEntityType(typeof(TList<OrganizacijskaJedinica>))]
		OrganizacijskaJedinicaCollection,

		///<summary>
		/// Collection of <c>Mjesto</c> as OneToMany for OsobaAdreseCollection
		///</summary>
		[ChildEntityType(typeof(TList<OsobaAdrese>))]
		OsobaAdreseCollection,

		///<summary>
		/// Collection of <c>Mjesto</c> as OneToMany for BankaCollection
		///</summary>
		[ChildEntityType(typeof(TList<Banka>))]
		BankaCollection,

		///<summary>
		/// Collection of <c>Mjesto</c> as OneToMany for OsobaCollection
		///</summary>
		[ChildEntityType(typeof(TList<Osoba>))]
		OsobaCollection,

		///<summary>
		/// Collection of <c>Mjesto</c> as OneToMany for OrganizacijaCollection
		///</summary>
		[ChildEntityType(typeof(TList<Organizacija>))]
		OrganizacijaCollection,

		///<summary>
		/// Collection of <c>Mjesto</c> as OneToMany for KlijentOsobaCollection
		///</summary>
		[ChildEntityType(typeof(TList<KlijentOsoba>))]
		KlijentOsobaCollection,

		///<summary>
		/// Collection of <c>Mjesto</c> as OneToMany for KlijentCollection
		///</summary>
		[ChildEntityType(typeof(TList<Klijent>))]
		KlijentCollection,

		///<summary>
		/// Collection of <c>Mjesto</c> as OneToMany for MjestoCollection
		///</summary>
		[ChildEntityType(typeof(TList<Mjesto>))]
		MjestoCollection,
	}
	
	#endregion MjestoChildEntityTypes
	
	#region MjestoFilterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="SqlFilterBuilder&lt;MjestoColumn&gt;"/> class
	/// that is used exclusively with a <see cref="Mjesto"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class MjestoFilterBuilder : SqlFilterBuilder<MjestoColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the MjestoFilterBuilder class.
		/// </summary>
		public MjestoFilterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the MjestoFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public MjestoFilterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the MjestoFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public MjestoFilterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion MjestoFilterBuilder
	
	#region MjestoParameterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="ParameterizedSqlFilterBuilder&lt;MjestoColumn&gt;"/> class
	/// that is used exclusively with a <see cref="Mjesto"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class MjestoParameterBuilder : ParameterizedSqlFilterBuilder<MjestoColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the MjestoParameterBuilder class.
		/// </summary>
		public MjestoParameterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the MjestoParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public MjestoParameterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the MjestoParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public MjestoParameterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion MjestoParameterBuilder
} // end namespace
